<template>
  <my-div class="web">
    <head :title="title"></head>
    <web class="webview" :src="src" :source="source"></web>
  </my-div>
</template>

<script>
import {url} from '../../utils/config.js'
export default {
  name: '',
  data() {
    return {
      src:'',
      source:'',
      title:''
    }
  },
  methods: {
    onLoad(param){
       if(param.src) this.src = url + param.src
      if(param.source) this.source = param.source
      if(param.title) this.title = param.title
      
    }
  }
}
</script>
<style  scoped>
.webview{
  width: 750px;
  height: 1334px;
}
</style>